package com.zxq.uart.frame.decoder;

import com.zxq.factory.annotate.DecoderField;
import com.zxq.factory.annotate.Frame;
import com.zxq.factory.enums.EField;
import com.zxq.factory.enums.ETrimMethod;
import com.zxq.uart.model.PlatformAttachDTO;
import lombok.Data;

@Frame(remark = "状态")
@Data
public class _01PortStateResult  extends PlatformAttachDTO {

    @DecoderField(field = EField.Byte,sequence = 1,param = 1)
    byte port_num;

    @DecoderField(field = EField.Bytes,sequence = 2,method = ETrimMethod.Tail,param = 0)
    byte[] states;

}
